PROJECT(krautchanagent)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR}
					${CMAKE_SOURCE_DIR}/chanagents)

SET(krautchanagent_sources
	krautchanagent.cpp
	krautchantasksendpost.cpp)

SET(krautchanagent_headers
	krautchanagent.h
	krautchantasksendpost.h)

QT4_WRAP_CPP(krautchanagent_moc ${krautchanagent_headers})

ADD_LIBRARY(krautchanagent MODULE ${krautchanagent_sources} ${krautchanagent_moc})
TARGET_LINK_LIBRARIES(krautchanagent ${QT_LIBRARIES} ${spelling_libs} wm)
SET_TARGET_PROPERTIES(krautchanagent PROPERTIES LIBRARY_OUTPUT_DIRECTORY ..)

INSTALL(TARGETS krautchanagent LIBRARY DESTINATION ${LIBDIR}/plugins/chanagents)

